# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-sameboy
pkgver=0_git20200107
pkgrel=0
_commit="c9e547c1063fd62c40a4b7a86e7db99dc9089051"
pkgdesc="Gameboy and Gameboy Color emulator for libretro"
url="https://github.com/libretro/SameBoy"
arch="all"
license="MIT"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/SameBoy/archive/$_commit.tar.gz"
builddir="$srcdir/SameBoy-$_commit"
options="!check" # No tests

build() {
	make -C libretro
}

package() {
	install -Dm644 libretro/sameboy_libretro.so "$pkgdir"/usr/lib/libretro/sameboy_libretro.so
}

sha512sums="451f08a22e662bb52918bbeea8f67eab4c43c8c68bd15fe0ab179eb6c0a94e2d1b04d634b1327dbcb8bd21abc3201b2a00a594dde8436382f4ac7aeaf641da0e  libretro-sameboy-c9e547c1063fd62c40a4b7a86e7db99dc9089051.tar.gz"
